import re
from urllib import request
from bs4 import BeautifulSoup
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36",
}

url = "https://search.51job.com/list/180200%252C080200%252C020000,000000,0000,00,9,99,python,2,1.html?lang=c&stype=&postchannel=0000&workyear=99&cotype=99&degreefrom=99&jobterm=99&companysize=99&providesalary=99&lonlat=0%2C0&radius=-1&ord_field=0&confirmdate=9&fromType=&dibiaoid=0&address=&line=&specialarea=00&from=&welfare="

#创建请求对象

req = request.Request(url,headers=headers,unverifiable=False)
#跳过ssl证书验证
response = request.urlopen(req)


html = response.read().decode('gbk')
soup = BeautifulSoup(html,'lxml')
jobnum = list(soup.select(".rt")[0].stripped_strings)
print(jobnum)